<script lang="ts">
import { defineComponent } from "vue";

import IndexMenuTitle from "./index-menu-title.vue";

export default defineComponent({
  components: { IndexMenuTitle },
  props: {
    isActive: Boolean,
    text: String,
  },
});
</script>

<template>
  <view class="type-item">
    <IndexMenuTitle v-if="isActive" :title="text" />
    <view class="type-item-text" v-else>{{ text }}</view>
  </view>
</template>

<style lang="scss">
.type-item {
  display: flex;

  .type-item-text {
    font-size: 36rpx;
    color: #999999;
    line-height: 50rpx;
  }
}
</style>